package com.example.demonstrate.wang.service.impl;

import com.example.demonstrate.wang.entity.ProfileFace;
import com.example.demonstrate.wang.model.PanshiFace;
import com.example.demonstrate.wang.service.FaceTransformer;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author along
 * @Date 2024/6/21 16:10
 */
public class PanshiTransformer implements FaceTransformer<PanshiFace, ProfileFace> {
    @Override
    public List<ProfileFace> transform(List<PanshiFace> panshiFaceList) {
        return panshiFaceList.stream()
                .map(this::transform)
                .collect(Collectors.toList());
    }

    private ProfileFace transform(PanshiFace panshiFace) {
        // TODO panshiFace convert
        return new ProfileFace();
    }
}
